package com.ldatum.crm.serviceImpl;

import java.util.List;

import com.ldatum.crm.dao.PurchaseDao;
import com.ldatum.crm.daoImpl.PurchaseDaoImpl;
import com.ldatum.crm.domain.Purchase;
import com.ldatum.crm.service.PurchaseService;

public class PurchaseServiceImpl implements PurchaseService {

	PurchaseDao purchaseDao = new PurchaseDaoImpl();
	@Override
	public String save(String handlername,String type) throws Exception {
		return purchaseDao.save(handlername,type);
	}
	@Override
	public List<Purchase> list(String type) throws Exception {
		return purchaseDao.list(type);
	}

}
